package com.study.spring.expand;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;

/**
 * Created by tan on 2017/6/26.
 */

/**
 * ApplicationContext会自动识别实现BeanFactoryPostProcessor接口的对象，并自动调用
 * BeanFactory并不会自动识别，只能手动添加到beanFacory中的
 */
public class MyBeanPostProcessor implements BeanPostProcessor {
	@Override
	public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {
		return null;
	}

	@Override
	public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
		return null;
	}
}
